<template>
  <div p4 class="color-content" h-full>
    <h1>测试页</h1>
    <input class="my-input" v-model="counter"/>
    <button @click="counter+=1">+</button>
    <div mt>
      Hello
    </div>
  </div>
</template>

<script setup lang="ts">
import { oStorage } from '~/models/Project';
import { tNum } from '~/models/types';
import { DataType } from '~/models/types/type';

const counter = ref(0)
const success = ref(true)

onMounted(() => {
  console.log('tNum instanceOf DataType', tNum instanceof DataType)
  
  // 找到if节点
  const ifNode = oStorage.value!.nodes.map(x => x.prototype.name) //  === 'Condition'
  console.log('if节点', ifNode);
  
  
})
</script>